home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
MacButtonEditor.h
< prev
next >
Wrap
Text File
|
1997-01-06
|
2KB
|
75 lines
/*
* File: MacButtonEditor.h
* Summary: A view that knows how to edit a TMacButton.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 1/06/96 JDJ Created
*/
#pragma once
#include <ZMacButton.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditMacButtonCommand
// ===================================================================================
class CEditMacButtonCommand : public CBaseEditPaneCommand<TMacButton, SMacButtonInfo> {
typedef CBaseEditPaneCommand<TMacButton, SMacButtonInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditMacButtonCommand();
CEditMacButtonCommand(TMacButton* pane, const SMacButtonInfo& oldInfo, const SMacButtonInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SMacButtonInfo& newInfo);
};
// ===================================================================================
// CMacButtonEditor
// ===================================================================================
class CMacButtonEditor : public CBasePaneEditor<TMacButton, SMacButtonInfo, CEditMacButtonCommand> {
typedef CBasePaneEditor<TMacButton, SMacButtonInfo, CEditMacButtonCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CMacButtonEditor();
CMacButtonEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SMacButtonInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SMacButtonInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};